package ngames.com.sushitv.Fragment;


import android.app.Application;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import ngames.com.sushitv.AppApplication;
import ngames.com.sushitv.R;
import ngames.com.sushitv.action.SearchRequestAction;
import ngames.com.sushitv.entity.SearchPrompt;

/**
 * A simple {@link Fragment} subclass.
 */
public class SRAllFragment extends Fragment {
    private View view;
    private SearchRequestAction searchRequestAction;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_srall, container, false);
        if (!AppApplication.getSearchRequestType().equals("2")) {
            searchRequestAction = new SearchRequestAction(getActivity(), view, 1, "all", AppApplication.getSearchKeyWord(),"0");
            searchRequestAction.onCreate();
        }
        return view;
    }

}
